<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: bleHeartRate Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d3/d81/classble_heart_rate.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d1/d15/classble_heart_rate-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bleHeartRate Class Reference<div class="ingroups"><a class="el" href="../../df/daf/group___b_l_e.html">BLE</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &quot;<a class="el" href="../../d5/dc2/ble__heartrate_8h_source.html">class/ble_heartrate.h</a>&quot;</code></p>
<div class="dynheader">
Inheritance diagram for bleHeartRate:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../d3/d81/classble_heart_rate.png" usemap="#bleHeartRate_map" alt=""/>
  <map id="bleHeartRate_map" name="bleHeartRate_map">
<area href="../../d9/db6/class_c_peripheral.html" alt="CPeripheral" shape="rect" coords="0,56,85,80"/>
<area href="../../dc/dac/class_c_object.html" alt="CObject" shape="rect" coords="0,0,85,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af5e0bc81b5d2f8e290b6cba8050f80c2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#af5e0bc81b5d2f8e290b6cba8050f80c2">bleHeartRate</a> (<a class="el" href="../../d7/d03/classble_serial.html">bleSerial</a> &amp;ble)</td></tr>
<tr class="separator:af5e0bc81b5d2f8e290b6cba8050f80c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a822019806bf50f6d25ae075b62a838ab"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a822019806bf50f6d25ae075b62a838ab">isAvailable</a> ()</td></tr>
<tr class="separator:a822019806bf50f6d25ae075b62a838ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd5a0148a2df6692893a274a18710431"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#acd5a0148a2df6692893a274a18710431">supportContact</a> (bool enable)</td></tr>
<tr class="separator:acd5a0148a2df6692893a274a18710431"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b05ceb33ffe7fcfe9f1a3dbf9679882"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a4b05ceb33ffe7fcfe9f1a3dbf9679882">contactStatus</a> (bool enable)</td></tr>
<tr class="separator:a4b05ceb33ffe7fcfe9f1a3dbf9679882"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c822ea4fafcb609e009427feb0949c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a9c822ea4fafcb609e009427feb0949c2">setSensorLocation</a> (<a class="el" href="../../db/dff/group___enumerations.html#ga142ef314a313f7071c544be2939c13a3">hrsl_code_t</a> code)</td></tr>
<tr class="separator:a9c822ea4fafcb609e009427feb0949c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b7329b1756f03c99334b6575e14c090"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a2b7329b1756f03c99334b6575e14c090">sendMeasure</a> (uint8_t meas_hr)</td></tr>
<tr class="memdesc:a2b7329b1756f03c99334b6575e14c090"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (8 bits).  <a href="#a2b7329b1756f03c99334b6575e14c090">More...</a><br/></td></tr>
<tr class="separator:a2b7329b1756f03c99334b6575e14c090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f69ad22553dabc5b992bf9a15aa6667"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a9f69ad22553dabc5b992bf9a15aa6667">sendMeasure</a> (uint16_t meas_hr)</td></tr>
<tr class="memdesc:a9f69ad22553dabc5b992bf9a15aa6667"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to send a heart rate measurement (16 bits).  <a href="#a9f69ad22553dabc5b992bf9a15aa6667">More...</a><br/></td></tr>
<tr class="separator:a9f69ad22553dabc5b992bf9a15aa6667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0bd83937f2997c2451918a421c277c2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#ac0bd83937f2997c2451918a421c277c2">sendMeasure</a> (uint8_t meas_hr, uint16_t expended_energy)</td></tr>
<tr class="memdesc:ac0bd83937f2997c2451918a421c277c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (8 bits) with expended energy.  <a href="#ac0bd83937f2997c2451918a421c277c2">More...</a><br/></td></tr>
<tr class="separator:ac0bd83937f2997c2451918a421c277c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34a055d4b926b2447ca78a4f63691d30"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a34a055d4b926b2447ca78a4f63691d30">sendMeasure</a> (uint16_t meas_hr, uint16_t expended_energy)</td></tr>
<tr class="memdesc:a34a055d4b926b2447ca78a4f63691d30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (16 bits) with expended energy.  <a href="#a34a055d4b926b2447ca78a4f63691d30">More...</a><br/></td></tr>
<tr class="separator:a34a055d4b926b2447ca78a4f63691d30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab511f6fcb6b7b57c09132911b5f87cb7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#ab511f6fcb6b7b57c09132911b5f87cb7">sendMeasure</a> (uint8_t meas_hr, uint16_t *p_rr_intervals, uint8_t nb_intervals)</td></tr>
<tr class="memdesc:ab511f6fcb6b7b57c09132911b5f87cb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (8 bits) with rr_intervals.  <a href="#ab511f6fcb6b7b57c09132911b5f87cb7">More...</a><br/></td></tr>
<tr class="separator:ab511f6fcb6b7b57c09132911b5f87cb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d3fd3348703d304cd445620e7bb4998"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a1d3fd3348703d304cd445620e7bb4998">sendMeasure</a> (uint16_t meas_hr, uint16_t *p_rr_intervals, uint8_t nb_intervals)</td></tr>
<tr class="memdesc:a1d3fd3348703d304cd445620e7bb4998"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (16 bits) with rr_intervals.  <a href="#a1d3fd3348703d304cd445620e7bb4998">More...</a><br/></td></tr>
<tr class="separator:a1d3fd3348703d304cd445620e7bb4998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a6d1f10ea9a92ad5a953fc683125c50"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a2a6d1f10ea9a92ad5a953fc683125c50">sendMeasure</a> (uint8_t meas_hr, uint16_t expended_energy, uint16_t *p_rr_intervals, uint8_t nb_intervals)</td></tr>
<tr class="memdesc:a2a6d1f10ea9a92ad5a953fc683125c50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (8 bits) with expended energy with rr_intervals.  <a href="#a2a6d1f10ea9a92ad5a953fc683125c50">More...</a><br/></td></tr>
<tr class="separator:a2a6d1f10ea9a92ad5a953fc683125c50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5cf3fd6c2e5909af4d51150c865d8b0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#ab5cf3fd6c2e5909af4d51150c865d8b0">sendMeasure</a> (uint16_t meas_hr, uint16_t expended_energy, uint16_t *p_rr_intervals, uint8_t nb_intervals)</td></tr>
<tr class="memdesc:ab5cf3fd6c2e5909af4d51150c865d8b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload function to send a heart rate measurement (16 bits) with expended energy with rr_intervals.  <a href="#ab5cf3fd6c2e5909af4d51150c865d8b0">More...</a><br/></td></tr>
<tr class="separator:ab5cf3fd6c2e5909af4d51150c865d8b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4764687c0e158518141b3dba9103b5d2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d81/classble_heart_rate.html#a4764687c0e158518141b3dba9103b5d2">onResetEnergyExpended</a> ()</td></tr>
<tr class="separator:a4764687c0e158518141b3dba9103b5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dac/class_c_object.html#a26a76c241a4d62d2efdac57d2cfe4c0f">isThread</a> ()</td></tr>
<tr class="separator:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The bleHearRate class exposes heart rate and other data from a Heart Rate Sensor intended for fitness applications. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d4/d70/_2ble_2ble_heartrate_2src_2main_8cpp-example.html#_a18">/ble/ble_heartrate/src/main.cpp</a>.</dd>
</dl></div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af5e0bc81b5d2f8e290b6cba8050f80c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bleHeartRate::bleHeartRate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d7/d03/classble_serial.html">bleSerial</a> &amp;&#160;</td>
          <td class="paramname"><em>ble</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><a class="el" href="../../d3/d81/classble_heart_rate.html">bleHeartRate</a> constructor </p>
<div class="fragment"><div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line">...</div>
<div class="line">    <a class="code" href="../../d7/d03/classble_serial.html">bleSerial</a> ble(<span class="stringliteral">&quot;myBLE&quot;</span>);</div>
<div class="line">    ble.enable();</div>
<div class="line"></div>
<div class="line">    <a class="code" href="../../d3/d81/classble_heart_rate.html">bleHeartRate</a> hr(ble);</div>
<div class="line">    hr.sendMeasure(BPM);</div>
<div class="line"> ...</div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ble</td><td>is a <a class="el" href="../../d7/d03/classble_serial.html" title="bleSerial class is a ble core, and inherits from CStream class to provide the stream virtual function...">bleSerial</a> class object. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4b05ceb33ffe7fcfe9f1a3dbf9679882"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bleHeartRate::contactStatus </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set contact sensor status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>is a boolean value, set true, if contact is detected. otherwise, contact is not detected. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a822019806bf50f6d25ae075b62a838ab"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool bleHeartRate::isAvailable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Use isAvailable to check the service whether opened by remote (App). </p>
<dl class="section return"><dt>Returns</dt><dd>true, if service is available. otherwise, the service is not in used. </dd></dl>

</div>
</div>
<a class="anchor" id="a26a76c241a4d62d2efdac57d2cfe4c0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CObject::isThread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check current object that inherits from <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class or not. </p>
<dl class="section note"><dt>Note</dt><dd>The isTherad() will be override by <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class. </dd></dl>

<p>Reimplemented in <a class="el" href="../../d0/d26/class_c_thread.html#ab2513fd0fcad30e2e6605609c91f1984">CThread</a>.</p>

</div>
</div>
<a class="anchor" id="a4764687c0e158518141b3dba9103b5d2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void bleHeartRate::onResetEnergyExpended </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>On reset energy expended event call by BLE task when receive remote (App) command. </p>
<dl class="section note"><dt>Note</dt><dd>The onResetEnergyExpended is a virtual empty function, and implement by child class. </dd></dl>

</div>
</div>
<a class="anchor" id="a2b7329b1756f03c99334b6575e14c090"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>meas_hr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (8 bits). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="a9f69ad22553dabc5b992bf9a15aa6667"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>meas_hr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function to send a heart rate measurement (16 bits). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="ac0bd83937f2997c2451918a421c277c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>meas_hr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>expended_energy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (8 bits) with expended energy. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
    <tr><td class="paramname">expended_energy</td><td>Measured expended energy. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="a34a055d4b926b2447ca78a4f63691d30"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>meas_hr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>expended_energy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (16 bits) with expended energy. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
    <tr><td class="paramname">expended_energy</td><td>Measured expended energy. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="ab511f6fcb6b7b57c09132911b5f87cb7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>meas_hr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_rr_intervals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>nb_intervals</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (8 bits) with rr_intervals. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
    <tr><td class="paramname">p_rr_intervals</td><td>Pointer to rr_intervals values. </td></tr>
    <tr><td class="paramname">nb_intervals</td><td>Number of rr_intervals. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="a1d3fd3348703d304cd445620e7bb4998"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>meas_hr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_rr_intervals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>nb_intervals</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (16 bits) with rr_intervals. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
    <tr><td class="paramname">p_rr_intervals</td><td>Pointer to rr_intervals values. </td></tr>
    <tr><td class="paramname">nb_intervals</td><td>Number of rr_intervals. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="a2a6d1f10ea9a92ad5a953fc683125c50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>meas_hr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>expended_energy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_rr_intervals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>nb_intervals</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (8 bits) with expended energy with rr_intervals. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>Measured heart_rate to send. </td></tr>
    <tr><td class="paramname">expended_energy</td><td>Measured expended energy. </td></tr>
    <tr><td class="paramname">p_rr_intervals</td><td>Pointer to rr_intervals values. </td></tr>
    <tr><td class="paramname">nb_intervals</td><td>Number of rr_intervals. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="ab5cf3fd6c2e5909af4d51150c865d8b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool bleHeartRate::sendMeasure </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>meas_hr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>expended_energy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>p_rr_intervals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>nb_intervals</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Overload function to send a heart rate measurement (16 bits) with expended energy with rr_intervals. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">meas_hr</td><td>measured heart_rate to send. </td></tr>
    <tr><td class="paramname">expended_energy</td><td>Measured expended energy. </td></tr>
    <tr><td class="paramname">p_rr_intervals</td><td>Pointer to rr_intervals values. </td></tr>
    <tr><td class="paramname">nb_intervals</td><td>Number of rr_intervals. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>: True when the command send successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="a9c822ea4fafcb609e009427feb0949c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bleHeartRate::setSensorLocation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../db/dff/group___enumerations.html#ga142ef314a313f7071c544be2939c13a3">hrsl_code_t</a>&#160;</td>
          <td class="paramname"><em>code</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set sensor location. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">code</td><td>is a hrsl_code_t enumeration. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acd5a0148a2df6692893a274a18710431"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bleHeartRate::supportContact </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set supported Contact sensor feature </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enable</td><td>true, if support the contact sensor. otherwise, no contact sensor supported. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d3/d81/classble_heart_rate.html">bleHeartRate</a></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
